package com.code.day14ApI2.Data;

import java.util.Date;

public class Demo10 {
    public static void main(String[] args) {

        long time = System.currentTimeMillis();
        System.out.println("time=" + time);

        Date date = new Date(1763791747013L);
        System.out.println(date);
        System.out.println("==================");


        int[] arr = {1, 2, 3, 4, 5};
        int[] arr2 = new int[arr.length];

         /*
          static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
                                src:源数组
                                srcPos:从源数组的哪个索引开始复制
                                dest:目标数组 -> 复制到哪个数组里面去
                                destPos:从目标数组的哪个索引开始粘贴
                                length:复制多少个
         */
        System.arraycopy(arr, 2, arr2, 1, 3);
//        数据类型  变量名  数组或者集合
        for (int i : arr2) {
            System.out.println(i + "");
        }

    }
}
